package com.yzkj.cpjxc.business.service.impl;

import com.yzkj.cpjxc.business.domain.KmYuEBiao;
import com.yzkj.cpjxc.business.service.KmYuEBiaoService;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 科目余额表服务实现类
 */
@Service
public class KmYuEBiaoServiceImpl implements KmYuEBiaoService {

	/**
	 * MyBatis 命名空间
	 */
	private final static String MAPPER_NAMESPACE = "com.chkj.xezz.kmYuEBiao.mappers.KmYuEBiaoMapper";

	@Autowired
	private SqlSessionTemplate sqlSessionTemplate;


	@Override
	public List<KmYuEBiao> searchList(KmYuEBiao qvo) throws Exception {
		List<KmYuEBiao> dataList = sqlSessionTemplate.selectList(MAPPER_NAMESPACE + ".searchList", qvo);
		return dataList;
	}

	@Override
	public KmYuEBiao searchOne(KmYuEBiao qvo) throws Exception {
		KmYuEBiao vo = sqlSessionTemplate.selectOne(MAPPER_NAMESPACE + ".searchOne", qvo);
		return vo;
	}
	
}
